package engine.newUi
{
		import engine.ui.lite.BaseUI;
		
		import flash.display.MovieClip;
		import flash.text.TextField;
		
		import newx.com.control.NxClip;
		import newx.com.control.button.NxButton;
		import newx.com.control.scroll.text.ChatText;
		import newx.com.control.text.NxLabel;
		import newx.com.control.text.NxText;
		
		/**
		 * 私聊界面 
		 * @author liuel
		 * 
		 */	
		public class WhisperUI extends BaseUI
		{
			private  static var _self         :WhisperUI;
			public   var border1               :MovieClip;
			//输入面板
			public  var inputArea              :MovieClip;
			//输出面板
			public  var outputArea             :MovieClip;
			public var picbg_1					:MovieClip;
//			public var picbg_2					:MovieClip;
			//发送按钮
			public  var sendBtn                :NxButton;
			//私聊对方头像
			public  var picClip                :NxClip;
			//自己头像
//			public var picClip2				:NxClip;
			//label1
			public  var nameLabel              :NxLabel;
			public  var levelLabel				:NxLabel;
			public  var  textLabel				:NxLabel; 
			//自己名字
//			public var  nameLabel2				:NxLabel;
			//自己等级
//			public var  levelLabel2			:NxLabel;
			
			public var showmc				:MovieClip;
			//表情按钮
			public  var picBtn                 :NxButton;
			public var line					:MovieClip;
			//下一条
			public 	 var nextBtn				:NxButton; 
			//添加好友
			public var  addBtn					:NxButton;
			//添加黑名单
			public var addblackBtn				:NxButton;
			//查看
//			public var  lookBtn				:NxButton;
			//聊天显示框
			public var chatText				:ChatText;
			
			public  var inputTxt1				:TextField;
			
			public var minBtn:NxButton;
			public var mc1			:MovieClip;
			public var mc4			:MovieClip;
			
			public var label1		:NxLabel;
			public var label4		:NxLabel;
			
			private var control:*;
//			public static function getInstance():WhisperUI
//			{
//				if(_self == null)
//				{
//					_self= new  WhisperUI();
//				}
//				return _self;
//			}
			public function WhisperUI(control:*,popupUI:Boolean=true)
			{
				this.control =control;
				super(popupUI);
			}
			override public function Init():void 
			{
				control.Init();
				setUI();
			}
			override protected function AfterHide():void 
			{
				control.AfterHide();
			}
			override protected function BeforeShow():void 
			{
				control.BeforeShow();
			}
			private function setUI():void
			{
				mc1.mouseEnabled =false;
				mc4.mouseEnabled =false;
				label1.mouseEnabled =false;
				label4.mouseEnabled =false;
			}
				
	}
}